package com.pp.activites;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

import com.pp.R;

/** Menu principal PP
 * 
 * @author fcamps
 *
 */
public class Measure extends Activity implements OnClickListener {

	@Override
	protected void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);

		setContentView(R.layout.measure1);

		findViewById(R.id.imageButtonBack).setOnClickListener(this);
		
		// Faire une mesure puis afficher measure2.xml a la fin de la mesure
		
	}

	@Override
	public void onClick(View v)
	{
		switch (v.getId()) 
		{
		case R.id.imageButtonBack:
			Intent intentControl = new Intent(this, MainActivity.class);
			startActivity(intentControl);
			finish();
			break;
			
		case R.id.correct_measure:
			// afficher R.layout.measure2
			break;
			
		case R.id.new_measure:
			// afficher R.layout.measure1
			break;
		}
	}
}
